package org.rulix.ogame.player.core.httpworker;

import java.util.concurrent.Callable;

import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpPost;
import org.rulix.ogame.player.core.OgameCoreLogicImpl;
import org.rulix.ogame.player.core.OgameRequestFactory;
import org.rulix.ogame.player.core.OgameResponseHelper;
import org.rulix.ogame.player.core.OgameSession;

public class DelegatedCallable implements Callable<Integer> {

	private Callable<Integer> callable;
	
	public DelegatedCallable(Callable<Integer> callable) {
		this.callable = callable;
	}
	
	@Override
	public Integer call() throws Exception {
		
		try {
			return callable.call();
		}catch(Exception e){
			e.printStackTrace();
			return -1;
		}
	}

}
